﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace S.Services.SheepMale.Infrastructure.Migrations
{
    public partial class qqq1111 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "ClientMarket",
                columns: table => new
                {
                    CM_Id = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    MarketDate = table.Column<DateTime>(type: "datetime2", nullable: true),
                    MarketNumber = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    MarketClient = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    TotalPrice = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
                    ExamineType = table.Column<int>(type: "int", nullable: false),
                    DepartmentId = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    MarketAddress = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    MarketPeople = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    ExamineBy = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    ExamineDate = table.Column<DateTime>(type: "datetime2", nullable: true),
                    CreateBy = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    CreateDate = table.Column<DateTime>(type: "datetime2", nullable: true),
                    UpdateBy = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    UpdateDate = table.Column<DateTime>(type: "datetime2", nullable: true),
                    IsDel = table.Column<bool>(type: "bit", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_ClientMarket", x => x.CM_Id);
                });
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "ClientMarket");
        }
    }
}
